﻿using MP_Game.Protos.V1;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MP_Network
{
    public interface IContainer
    {
        void OnInit();
        /// <summary>
        /// 收到来自客户端的消息时触发
        /// </summary>
        /// <param name="serverBase"></param>
        /// <param name="packet"></param>
        void OnServerCommand(ServerBase serverBase, GamePacket packet);
        /// <summary>
        /// 收到来自服务端的消息时触发
        /// </summary>
        /// <param name="serverBase"></param>
        /// <param name="packet"></param>
        void OnClientCommand(ServerBase serverBase, GamePacket packet);
    }
}
